code: public boolean isSameOrSubTypeOf(String type, String baseType) throws ClassNotFoundException
      {
          return type.replace('$', '.').equals(baseType.replace('$', '.')) ? true : isSameOrSubTypeOf(getClass(type), baseType);
      }
docs: Determines whether the given type is the same or a sub type of the other type.
  
  @param type     The type
  @param baseType The possible base type
  @return <code>true</code> If <code>type</code> specifies the same or a sub type of <code>baseType</code>
  @throws ClassNotFoundException If the two classes are not on the classpath