newResource.setResType(resType);
newResource.setClassName(className);
newResource.setEnabled(enabled);
if (props != null) {
for ( Map.Entry e : props.entrySet()) {
Property prop = newResource.createChild(Property.class);
prop.setName((String)e.getKey());
prop.setValue((String)e.getValue());
newResource.getProperty().add(prop);
}
}