if (beanInfo.getCreatorConstructor() != null) {
try {
object = beanInfo.getCreatorConstructor().newInstance(params);
} catch (Exception e) {
throw new PBException("create instance error, "
+ beanInfo.getCreatorConstructor().toGenericString(), e);
}
} else if (beanInfo.getFactoryMethod() != null) {
try {
object = beanInfo.getFactoryMethod().invoke(null, params);
} catch (Exception e) {
throw new PBException("create factory method error, "
+ beanInfo.getFactoryMethod().toString(), e);
}
}
}