public static StorageFormatDescriptor getDescriptor(String format, String clause) throws SemanticException {
    if (format.isEmpty()) {
      throw new SemanticException("File format in " + clause + " cannot be empty");
    }
    StorageFormatDescriptor descriptor = storageFormatFactory.get(format);
    if (descriptor == null) {
      throw new SemanticException("Unrecognized file format in " + clause + ":" + " '" + format + "'");
    }
    return descriptor;
  }
Returns true if the passed token was a storage format token
and thus was processed accordingly.
ql/src/java/org/apache/hadoop/hive/ql/parse/StorageFormat.java