public static ExtensionPropertySerializer getSerializerByClass(Class<?> valueClass,
        Map<Class<?>, ExtensionPropertySerializer> serializerByClass)
    {
        for (Map.Entry<Class<?>, ExtensionPropertySerializer> entry : serializerByClass.entrySet()) {
            if (entry.getKey().isAssignableFrom(valueClass)) {
                return entry.getValue();
            }
        }

        return null;
    }
public static ExtensionPropertySerializer getSerializerByClass ( Class < ? > valueClass , Map < Class < ? > , ExtensionPropertySerializer > serializerByClass ) { for ( Map . Entry < Class < ? > , ExtensionPropertySerializer > entry : serializerByClass . entrySet ( ) ) { if ( entry . getKey ( ) . isAssignableFrom ( valueClass ) ) { return entry . getValue ( ) ; } } return null ; }
@param valueClass the class of the value to serialize
@param serializerByClass the serializers by class
@return the serializer for the provided class