code: @SuppressFBWarnings(value = "DP_DO_INSIDE_DO_PRIVILEGED", justification = "EV is run only from within unit tests")
      @SuppressWarnings("unchecked")
      public <T> T returnConstant(String constantName) {
          try {
              Class<T> type = resolve();
              if (type == null) {
                  return null;
              }
              Field field = type.getField(constantName);
              field.setAccessible(true);
              return (T)field.get(null);
          }
          catch (Exception e) {
              return handleException(e);
          }
      }
docs: Attempts to resolve a static constant on the type.
  
  @param <T>
  The type of the constant.
  @param constantName
  The name of the constant.
  @return The value of the constant, or null if the type does not exist.
  @throws ReflectionException
  If resolving the constant fails.