code: @Override
      protected Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {
          
          try {
              AmfTrace trace = null;
              if (log.isDebugEnabled()) {
                  trace = new AmfTrace();
              }
              
              Object result = null;
              
              if (clazz.equals(ActionMessage.class)) {
              	result = readActionMessage(inputMessage, trace);
              } else {
              	result = readObject(inputMessage, trace);
              }
              
              if (log.isDebugEnabled()) {
                  log.debug("Read AMF message:\n" + trace);
              }
              return result;
          } finally {
              FlexContext.clearThreadLocalObjects();
              SerializationContext.clearThreadLocalObjects();
          }
      }
docs: {@inheritDoc}