// Declare internal and external roots
for(RootSpec r : configuration.roots) {
- Resource type = graph.getPossibleType(r.resource, L0.Entity);
- if(type == null) type = L0.Entity;
+ String typeId = r.type;
+ if (typeId == null) {
+ Resource type = graph.getPossibleType(r.resource, L0.Entity);
+ typeId = type != null ? graph.getURI(type) : Layer0.URIs.Entity;
+ }
procedure.execute(new Identity(
state.ids.get(support.getTransientId(r.resource)),
- new Root(r.name, graph.getURI(type))));
+ new Root(r.name, typeId)));
}
for(int i = 0; i < state.externals.size() ; i++) {