public static Class<? extends Deserializer> getDeserializerClass(
      Configuration conf, org.apache.hadoop.hive.metastore.api.Table table) throws Exception {
    String lib = table.getSd().getSerdeInfo().getSerializationLib();
    return lib == null ? null : conf.getClassByName(lib).asSubclass(Deserializer.class);
  }
getDeserializer

Get the Deserializer for a table.

@param conf
         - hadoop config
@param table
         the table
@return
  Returns instantiated deserializer by looking up class name of deserializer stored in
  storage descriptor of passed in table. Also, initializes the deserializer with schema
  of table.
@exception MetaException
             if any problems instantiating the Deserializer

             todo - this should move somewhere into serde.jar
metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreUtils.java