List<NamedResource> templates = Simantics.getSession().syncRequest(new Read<List<NamedResource>>() {
@Override
public List<NamedResource> perform(ReadGraph graph) throws DatabaseException{
List<NamedResource> templates = Simantics.getSession().syncRequest(new Read<List<NamedResource>>() {
@Override
public List<NamedResource> perform(ReadGraph graph) throws DatabaseException{