}
private static FormItemDeclaration createFormItemDeclaration(Method method) {
FormItem formItemDeclaration = method.getAnnotation(FormItem.class);
String defaultValue = "";
String label = "";
String localLabel = "";
String tabName = "";
boolean required = false;
String formItemTypeForEdit = "TEXT_BOX";
String formItemTypeForAdd = "TEXT_BOX";
String subgroup = "";
String localTabName = "common_label_attributes";
int order = 100;
String[] acceptedValues = new String[0];
if(formItemDeclaration!=null)
{
defaultValue = formItemDeclaration.defaultValue();
label = formItemDeclaration.label();
localLabel = formItemDeclaration.localLabel();
required = formItemDeclaration.required();
formItemTypeForEdit = formItemDeclaration.formItemTypeForEdit();
formItemTypeForAdd = formItemDeclaration.formItemTypeForAdd();
subgroup = formItemDeclaration.subgroup();
localTabName = formItemDeclaration.localTabName();
tabName = formItemDeclaration.tabName();
order = formItemDeclaration.order();
acceptedValues = formItemDeclaration.acceptedValues();
}
FormItemDeclaration decl = new FormItemDeclaration(defaultValue, label, localLabel, required,
formItemTypeForEdit, formItemTypeForAdd,
subgroup, localTabName, order, acceptedValues,