private Type getType() {
      String name = name();
      Type type = Type.getType(name);
      return type == null ? new Type(name(), ordinal()) : type;
    }
Get the {@link Type} that corresponds to this InternalType.

@return the corresponding type.
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java