ServiceDeployment deployment = parseJbossServiceXml("profileservice/persistence/jboss-service.xml");
// Manually create a persistence view
List<ServiceMetaData> services = deployment.getServices();
List<PersistedComponent> components = new ArrayList<PersistedComponent>();
ManagedObjectPersistencePlugin plugin = getPersistenceFactory().getPersistencePlugin();
for(ServiceMetaData md : deployment.getServices())
{
// Bypass the ServiceMetaDataICF...
ManagedObject mo = getMOF().initManagedObject(md, null);
PersistedManagedObject persisted = plugin.createPersistedManagedObject(mo);
// Fix the names, as we don't use the ServiceMetaDataICF
String name = md.getObjectName().getCanonicalName();
persisted.setName(name);
persisted.setOriginalName(name);