}
EntityManager em = null;
try {
em = AppCatalogJPAUtils.getEntityManager();
AppEnvironment appEnvironment = em.find(AppEnvironment.class,
new AppEnvironment_PK(ids.get(AppEnvironmentConstants.DEPLOYMENT_ID),
ids.get(AppEnvironmentConstants.NAME)));
em.close();
return appEnvironment != null;
} catch (ApplicationSettingsException e) {
logger.error(e.getMessage(), e);