Host_Descriptor existingHostDesc = em.find(Host_Descriptor.class, new Host_Descriptor_PK(gatewayName, name.toString()));
em.close();
return existingHostDesc != null;
case SERVICE_DESCRIPTOR:
em = ResourceUtils.getEntityManager();
Service_Descriptor existingServiceDesc = em.find(Service_Descriptor.class, new Service_Descriptor_PK(gatewayName, name.toString()));
em.close();
return existingServiceDesc != null;
case APPLICATION_DESCRIPTOR:
em = ResourceUtils.getEntityManager();
Application_Descriptor existingAppDesc = em.find(Application_Descriptor.class, new Application_Descriptor_PK(gatewayName, name.toString()));