code: public Serializer getCustomSerializer(Class cl)
      {
          Serializer serializer = _customSerializerMap.get(cl.getName());
  
          if (serializer == AbstractSerializer.NULL)
              return null;
          else if (serializer != null)
              return serializer;
  
          try {
              Class serClass = Class.forName(cl.getName() + "HessianSerializer",
                  false, cl.getClassLoader());
  
              Serializer ser = (Serializer) serClass.newInstance();
  
              _customSerializerMap.put(cl.getName(), ser);
  
              return ser;
          } catch (ClassNotFoundException e) {
              log.log(Level.ALL, e.toString(), e);
          } catch (Exception e) {
              throw new HessianException(e);
          }
  
          _customSerializerMap.put(cl.getName(), AbstractSerializer.NULL);
  
          return null;
      }
docs: Returns a custom serializer the class
  
  @param cl the class of the object that needs to be serialized.
  
  @return a serializer object for the serialization.