code: @SuppressWarnings("unchecked")
  	public <T> T fromAmf(final ByteArrayInputStream amf)
  			throws ClassNotFoundException, IOException {
  		Amf3Input amf3Input = new Amf3Input(context);
  		amf3Input.setInputStream(amf);
  		// Read object does the actual work of conversion.
  		return (T) amf3Input.readObject();
  	}
docs: This method takes an AMF3 object in byte array form and converts it to a
  corresponding java object.
  
  @param <T>
  @param amf
  The serialized AMF3 object as a byte array.
  @return Returns the java object after conversion.
  @throws ClassNotFoundException
  @throws IOException