code: public static String toStringType(short type) throws RegistryException {
  	if (type == TYPE_DWORD) return REGDWORD_TOKEN;
  	else if (type == TYPE_STRING) return REGSTR_TOKEN;
  	else if (type == TYPE_KEY) return REGKEY_TOKEN;
  	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