try {
byteObj = RegistryManager.getInstance().retrieve(STRATOS_MANAGER_REOSURCE + SERVICES + "/" + cartridgeType);
} catch (RegistryException e) {
throw new PersistenceManagerException(e);
}
if (byteObj == null) {
return null;
}
Object serviceObj;
try {
serviceObj = Deserializer.deserializeFromByteArray((byte[]) byteObj);
} catch (Exception e) {
throw new PersistenceManagerException(e);
}
if (serviceObj instanceof Service) {
return (Service) serviceObj;
}