// check if the resource is available, else create it
if (!govRegistry.resourceExists(STRATOS_MANAGER_REOSURCE)) {
synchronized (RegistryManager.class) {
try {
if (!govRegistry.resourceExists(STRATOS_MANAGER_REOSURCE)) {
govRegistry.put(STRATOS_MANAGER_REOSURCE, govRegistry.newCollection());
}
} catch (RegistryException e) {
String errorMsg = "Failed to create the registry resource " + STRATOS_MANAGER_REOSURCE;
log.error(errorMsg, e);
throw e;