code: public Class<?> getFarType(Class<?> nearType) {
          if (!nearToFarType.containsKey(nearType)) {
              throw new IllegalStateException("Near type not registered: " + (nearType == null ? "null" : nearType.getSimpleName()));
          }
          return nearToFarType.get(nearType);
      }
docs: Returns the far type that corresponds to the given near type.
  @param nearType The near type to look up
  @return The corresponding far type
  @throws java.lang.IllegalStateException If the given near type is not registered