@Override
public final boolean dereference(UriRef uri, MGraph graph, Lock writeLock, DereferenceContext derefContext) throws DereferenceException {
T service = getService();
if(service == null){
throw new DereferenceException(uri, serviceClass.getClass().getSimpleName()
+ "service is currently not available");
}
Representation rep;
try {
rep = getRepresentation(service, uri.getUnicodeString(), derefContext.isOfflineMode());
} catch(EntityhubException e){
throw new DereferenceException(uri,e);
}
//we need the languages as strings
final Set<String> langs = derefContext.getLanguages();
if(rep != null){