import org.simantics.db.common.ProcedureBarrier;\r
import org.simantics.db.common.WriteBindings;\r
import org.simantics.db.common.procedure.adapter.AsyncMultiProcedureAdapter;\r
+import org.simantics.db.common.request.PropertyMapOfResource;\r
import org.simantics.db.common.request.ResourceAsyncRead;\r
import org.simantics.db.procedure.AsyncProcedure;\r
import org.simantics.layer0.Layer0;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
\r
public class EscapedChildMapOfResource extends ResourceAsyncRead<Map<String, Resource>> {\r
\r
+ private static final Logger LOGGER = LoggerFactory.getLogger(EscapedChildMapOfResource.class);\r
+\r
public EscapedChildMapOfResource(Resource resource) {\r
super(resource);\r
}\r
if (name != null) {\r
String escapedName = URIStringUtils.escape((String)name); \r
if (map.put(escapedName, child) != null)\r
- System.err.println(this + ": The database contains siblings with the same name " + escapedName + " (resource=" + resource.getResourceId() +").");\r
+ LOGGER.error("The database contains siblings with the same name " + escapedName + " (resource=" + resource.getResourceId() +").");\r
}\r
barrier.dec(g, procedure, map);\r
}\r