ULCButton ret = null;
if (commands != null) {
for (DataModelCommand m = commands.firstItem(); m != null; m = commands.nextItem()) {
if (m.getCommandName().equals(text)) {
CommandULCEditor viewer = null;
try {
viewer = (CommandULCEditor) factory.createDefaultUlcEditor(m);
ret = (ULCButton) viewer.getULCComponent(factory);
} catch (Exception e) {
e.printStackTrace(); //TODO
}
break;