public Serializer getObjectSerializer(Class<?> cl)
        throws HessianProtocolException {
        Serializer serializer = getSerializer(cl);

        if (serializer instanceof ObjectSerializer)
            return ((ObjectSerializer) serializer).getObjectSerializer();
        else
            return serializer;
    }
public Serializer getObjectSerializer ( Class < ? > cl ) throws HessianProtocolException { Serializer serializer = getSerializer ( cl ) ; if ( serializer instanceof ObjectSerializer ) return ( ( ObjectSerializer ) serializer ) . getObjectSerializer ( ) ; else return serializer ; }
Returns the serializer for a class.

@param cl the class of the object that needs to be serialized.
@return a serializer object for the serialization.