try {
if (resources != null) {
Application application = dc.getTransientAppMetaData(Application.APPLICATION, Application.class);
Resources asc = dc.getTransientAppMetaData(ConnectorConstants.APP_META_DATA_RESOURCES, Resources.class);
if (asc == null) {
asc = application.createChild(Resources.class);
application.setResources(asc);
dc.addTransientAppMetaData(ConnectorConstants.APP_META_DATA_RESOURCES, asc);
ApplicationInfo appInfo = appRegistry.get(app.getName());
if(appInfo != null){
appInfo.addTransientAppMetaData(app.getName()+"-resources", asc);