try{
Class<?> tempClass = Class.forName(beanPackageName);
int num=0;
for(String labelText: lstLabelText){
Text txtLabel = new Text(labelText);
grid.add(txtLabel, 0, num);
String nameMethod="get"+StringUnit.captureName(mapLableNameAndTxtProp.get(labelText));
Method method1 = tempClass.getMethod(nameMethod);
Object objValue = method1.invoke(obj);
}
}catch (Exception e) {
e.printStackTrace();
}
Class<?> tempClass = Class.forName(beanPackageName);
int num=0;
for(String labelText: lstLabelText){
Text txtLabel = new Text(labelText);
grid.add(txtLabel, 0, num);
String nameMethod="get"+StringUnit.captureName(mapLableNameAndTxtProp.get(labelText));
Method method1 = tempClass.getMethod(nameMethod);
Object objValue = method1.invoke(obj);
}
}catch (Exception e) {
e.printStackTrace();
}