/**
* Class for transforming a InsertObject command.
*/
class InsertObjectTransformer extends CommandTransformer {
public GenericCommand<?> transform(CommandTranslator ct, Object o, Unmarshaller unmarshaller) {
InsertObjectCommand io = (InsertObjectCommand)o;
Object object = io.getObject();
if (object instanceof Element) {
Element el = (Element)object;
Object obj = ct.makeObject(el , unmarshaller);
io.setObject(obj);
}
return io;
}