public static boolean isConfigurationExists(String configKey, String configVal){
try{
//Currently categoryID is hardcoded value
EntityManager em = ResourceUtils.getEntityManager();
Configuration existing = em.find(Configuration.class, new Configuration_PK(configKey, configVal, AbstractResource.ConfigurationConstants.CATEGORY_ID_DEFAULT_VALUE));
em.close();
return existing!= null;
} catch (Exception e){
logger.error(e.getMessage(), e);
throw new EntityNotFoundException();