import org.simantics.db.service.CollectionSupport;\r
import org.simantics.layer0.Layer0;\r
import org.simantics.utils.Development;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
\r
public class UnescapedChildMapOfResource extends ResourceRead<Map<String, Resource>> {\r
\r
+ private static final Logger LOGGER = LoggerFactory.getLogger(UnescapedChildMapOfResource.class);\r
+\r
public UnescapedChildMapOfResource(Resource resource) {\r
super(resource);\r
}\r
if(name != null) {\r
Resource old = result.put(name, r);\r
if (old != null)\r
- System.err.println(this + ": The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() + ", child=$" + r.getResourceId() + ", previous child=$" + old.getResourceId() + ").");\r
+ LOGGER.error("The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() + ", child=$" + r.getResourceId() + ", previous child=$" + old.getResourceId() + ").");\r
} else {\r
if(Development.DEVELOPMENT)\r
- System.err.println(this + ": The database contains a child with no unique name (resource=$" + resource.getResourceId() + ", child=$" + r.getResourceId() + ").");\r
+ LOGGER.error("The database contains a child with no unique name (resource=$" + resource.getResourceId() + ", child=$" + r.getResourceId() + ").");\r
}\r
}\r
return result;\r