protected InvocationRequest marshallInvocation(InvocationRequest localInvocation) throws IOException, ClassNotFoundException
{
final Object param = localInvocation.getParameter();
Object newParam = null;
String serializationType = getSerializationType();
final SerializationManager manager = SerializationStreamFactory.getManagerInstance(serializationType);
if (serializationType.indexOf("jboss") < 0 || SecurityUtility.skipAccessControl())
{
newParam = manager.createMarshalledValueForClone(param).get();
}
else
{
try
{
newParam = AccessController.doPrivileged( new PrivilegedExceptionAction()
{
public Object run() throws Exception
{
return manager.createMarshalledValueForClone(param).get();
}
});
}
catch (PrivilegedActionException e)
{