private <T extends Component> T find(String id, Class<T> type) {
return type.cast(editTemplateWindow.getFellow(id));
}
private void bindAdvancesAssignment(OrderElementTemplate template) {
AdvancesAssignmentComponent component = find(
"advancesAssignment", AdvancesAssignmentComponent.class);
component.useModel(model, template);
}