import org.simantics.db.Resource;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.layer0.Layer0;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
\r
public class PropertyMapOfResource extends ResourceRead<Map<String, Resource>> {\r
\r
+ private static final Logger LOGGER = LoggerFactory.getLogger(PropertyMapOfResource.class);\r
+\r
public PropertyMapOfResource(Resource resource) {\r
super(resource);\r
}\r
if(name != null) {\r
String escapedName = URIStringUtils.escape(name); \r
if (result.put(escapedName, predicate) != null)\r
- System.err.println(this + ": The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() +").");\r
+ LOGGER.error("The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() +").");\r
}\r
} \r
}\r