SimpleProperty objectName = new SimpleProperty("objectName");
objectName.setDescription("ObjectName of the Manager");
objectName.setType("string");
objectName.setReadOnly(true);
root.getSimpleProps().add(objectName);
Template defaultTemplate = new Template("defaultManualDiscovery");
defaultTemplate.setDescription("The default setup for Infinispan");
SimpleProperty connect2 = new SimpleProperty("connectorAddress");
connect2.setDisplayName("URL of the remote server");
connect2.setDefaultValue("service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:6996/jmxrmi");
defaultTemplate.getSimpleProps().add(connect2);
root.getTemplates().add(defaultTemplate);
Props cache = new Props();
cache.setName("Infinispan Cache");
cache.setPkg("org.infinispan.jopr");