public InternalType getInternalType() {
      if (isInternalType()) {
        return InternalType.values()[ordinal];
      }
      throw new UnsupportedOperationException(name + " is not an internal type.");
    }
Get the internal type enum associated with this type.

@return the internal type enum

@throws UnsupportedOperationException if this type is not an internal type
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java