DynamicObjectType object = (DynamicObjectType) command;
if (object.getId() == null)
{
DynamicPropertiesDefinition fieldDefinition = new DynamicPropertiesDefinition();
WidgetTesto widget = new WidgetTesto();
fieldDefinition.setRendering(widget);
fieldDefinition.setShortName(object.getShortName() + "name");
DecoratorDynamicPropertiesDefinition decorator = fieldDefinition
.getDecoratorClass().newInstance();
decorator.setReal(fieldDefinition);