code: public static String toCFStringType(short type) throws RegistryException {
  	if (type == TYPE_DWORD) return "DWORD";
  	else if (type == TYPE_STRING) return "STRING";
  	else if (type == TYPE_KEY) return "KEY";
  	throw new RegistryException("invalid Registry Type definition");
      }
docs: cast a short type to a String Type
  
  @param type
  @return Registry String Type Definition
  @throws RegistryException