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