/** * Return true if the response represents a resource with the given type * * @param typeUri URI of the type * @return true if the type is present. */ public boolean hasType(final URI typeUri) { return getHeaderValues(LINK).stream() .map(FcrepoLink::new) .anyMatch(l -> l.getRel().equals(TYPE_REL) && l.getUri().equals(typeUri)); }