private static void addProtocolSpecificHeaders(ResponseBuilder builder, Class<? extends PublicResource> clazz) {
		List<Term> types=new ArrayList<Term>();
		if(PublicRDFSource.class.isAssignableFrom(clazz)) {
			types.add(LDP.RESOURCE);
		}
		if(PublicBasicContainer.class.isAssignableFrom(clazz)) {
			types.add(LDP.BASIC_CONTAINER);
		} else if(PublicDirectContainer.class.isAssignableFrom(clazz)) {
			types.add(LDP.DIRECT_CONTAINER);
		} else if(PublicIndirectContainer.class.isAssignableFrom(clazz)) {
			types.add(LDP.INDIRECT_CONTAINER);
		}
		for(Term type:types) {
			builder.header(MoreHttp.LINK_HEADER,MoreHttp.createLink(type, "type"));
		}
	}
private static void addProtocolSpecificHeaders(ResponseBuilder builder, Class<? extends PublicResource> clazz) {
		List<Term> types=new ArrayList<Term>();
		if(PublicRDFSource.class.isAssignableFrom(clazz)) {
			types.add(LDP.RESOURCE);
		}
		if(PublicBasicContainer.class.isAssignableFrom(clazz)) {
			types.add(LDP.BASIC_CONTAINER);
		} else if(PublicDirectContainer.class.isAssignableFrom(clazz)) {
			types.add(LDP.DIRECT_CONTAINER);
		} else if(PublicIndirectContainer.class.isAssignableFrom(clazz)) {
			types.add(LDP.INDIRECT_CONTAINER);
		}
		for(Term type:types) {
			builder.header(MoreHttp.LINK_HEADER,MoreHttp.createLink(type, "type"));
		}
	}
private static void addProtocolSpecificHeaders ( ResponseBuilder builder , Class < ? extends PublicResource > clazz ) { List < Term > types = new ArrayList < Term > ( ) ; if ( PublicRDFSource . class . isAssignableFrom ( clazz ) ) { types . add ( LDP . RESOURCE ) ; } if ( PublicBasicContainer . class . isAssignableFrom ( clazz ) ) { types . add ( LDP . BASIC_CONTAINER ) ; } else if ( PublicDirectContainer . class . isAssignableFrom ( clazz ) ) { types . add ( LDP . DIRECT_CONTAINER ) ; } else if ( PublicIndirectContainer . class . isAssignableFrom ( clazz ) ) { types . add ( LDP . INDIRECT_CONTAINER ) ; } for ( Term type : types ) { builder . header ( MoreHttp . LINK_HEADER , MoreHttp . createLink ( type , "type" ) ) ; } }
Link: rel='type' headers"
Link : rel = type headers