newProfiler.setClasspath(classpath);
newProfiler.setEnabled(enabled.toString());
newProfiler.setNativeLibraryPath(nativeLibraryPath);
if (properties != null) {
for ( Map.Entry e : properties.entrySet()) {
Property prop = newProfiler.createChild(Property.class);
prop.setName((String)e.getKey());
prop.setValue((String)e.getValue());
newProfiler.getProperty().add(prop);
}
}