code: @Nullable
    private static <T> T resolveAttribute(String attributeName, Class<T> type) {
      String getter = readProperty(attributeName);
      if (getter == null) {
        return null;
      }
      int idx = getter.indexOf('#');
      if (idx <= 0 || idx == getter.length() - 1) {
        error("invalid getter (expected <class>#<method>): %s\n", getter);
        return null;
      }
      return callStaticMethod(getter.substring(0, idx), getter.substring(idx + 1), type);
    }
docs: Helper to call a static no-arg getter to obtain an instance of a specified type. This is used
  for platform aspects which are optional, but are expected to have a singleton available.
  
  @return the return value of the specified static no-argument method, or null if the method
  cannot be called or the returned value is of the wrong type.