code: private static Integer getTarget(String targetName) {
          if (targetName.equals("resource")) {
              return AttributeDesignator.RESOURCE_TARGET;
          } else if (targetName.equals("subject")) {
              return AttributeDesignator.SUBJECT_TARGET;
          } else if (targetName.equals("environment")) {
              return AttributeDesignator.ENVIRONMENT_TARGET;
          } else if (targetName.equals("action")) {
              return AttributeDesignator.ACTION_TARGET;
          } else {
              return -1;
          }
      }
docs: Converts a XACML target name (in lower case) to the Sun XACML designator identifier
  @param targetName
  @return