return cons.newInstance();
} catch (NoSuchMethodException e) {
try {
Constructor cons = beanClass.getConstructor(new Class[] { Frame.class });
cons.setAccessible(true);
return cons.newInstance(new Frame());
} catch (NoSuchMethodException ex) {
try {
Constructor cons = beanClass.getConstructor(new Class[] { String.class });
cons.setAccessible(true);
return cons.newInstance(new String());