- this.types = graph.syncRequest(new TypeString(L0, graph.getTypes(resource)));
- this.id = idFromGUID(graph.getPossibleRelatedValue(resource, L0.identifier, GUID.BINDING));
- }
-
- private static String idFromGUID(GUID guid) {
- if(guid == null) return "";
- return guid.indexString();
+ Set<Resource> typeSet = graph.getTypes(resource);
+ this.types = graph.syncRequest(new TypeString(L0, typeSet));
+ this.id = IndexQueries.idFromGUID(graph.getPossibleRelatedValue(resource, L0.identifier, GUID.BINDING));
+ this.typeId = IndexQueries.toResourceIdString(typeSet);