public Identifier getOrganizationIdentifier() {
      Identifier organization = null;

      MultivaluedMap<java.lang.String, java.lang.String> pathParams = uriInfo.getPathParameters();
      String organizationIdStr = pathParams.getFirst("organizationId");
      if (isNotEmpty(organizationIdStr)) {
        organization = Identifier.from(organizationIdStr);
      } else {
        String organizationName = pathParams.getFirst("organizationName");
        organization = Identifier.fromName(organizationName);
      }

      return organization;
    }
    public Identifier getUserIdentifier() {

      MultivaluedMap<java.lang.String, java.lang.String> pathParams = uriInfo.getPathParameters();
      String userIdStr = pathParams.getFirst("userId");
      if (isNotEmpty(userIdStr)) {
        return Identifier.from(userIdStr);
      }
      String username = pathParams.getFirst("username");
      if (username != null) {
        return Identifier.fromName(username);
      }
      String email = pathParams.getFirst("email");
      if (email != null) {
        return Identifier.fromEmail(email);
      }
      return null;
    }
    public Identifier getApplicationIdentifier() {
      Identifier application = null;

      MultivaluedMap<java.lang.String, java.lang.String> pathParams = uriInfo.getPathParameters();
      String applicationIdStr = pathParams.getFirst("applicationId");
      if (isNotEmpty(applicationIdStr)) {
        application = Identifier.from(applicationIdStr);
      } else {
        String applicationName = PathingUtils.assembleAppName(uriInfo.getPathParameters());
        if (logger.isDebugEnabled()) {
          logger.debug("Pulled applicationName {}", applicationName);
        }
        application = Identifier.fromName(applicationName);
      }

      return application;
    }
 /* create a map of Notifier UUIDs and/or names to Notifiers */
 protected Map<Object, Notifier> getNotifierMap(Map payloads) throws Exception {
   Map<Object, Notifier> notifiers = new HashMap<Object, Notifier>(payloads.size() * 2);
   for (Object id : payloads.keySet()) {
     Identifier identifier = Identifier.from(id);
     Notifier notifier;
     if (identifier.isUUID()) {
       notifier = em.get(identifier.getUUID(), Notifier.class);
     } else {
       EntityRef ref = em.getAlias("notifier", identifier.getName());
       notifier = em.get(ref, Notifier.class);
     }
     if (notifier != null) {
       notifiers.put(notifier.getUuid(), notifier);
       notifiers.put(notifier.getUuid().toString(), notifier);
       if (notifier.getName() != null) {
         notifiers.put(notifier.getName(), notifier);
       }
     }
   }
   return notifiers;
 }