{
return Encoding.encodeObject((Serializable)param) ;
}
catch (final IOException ioe)
{
throw new MarshalException("Failed to encode value", ioe) ;
}
}
else
{
throw new MarshalException("Invalid value type for marshaling plugin:" + param.getClass().getName()) ;
}
}