try { final Class<? extends AbstractResource> resourceClass = resource.getClass(); final String methodName = "get" + Strings.capitalize(name); Method method = resourceClass.getMethod(methodName); value = method.invoke(o);
try { final Class<? extends AbstractResource> resourceClass = resource.getClass(); final String methodName = "get" + Strings.capitalize(name); Method method = resourceClass.getMethod(methodName); value = method.invoke(o);
if (defaultAccount.getPropertyDescriptors().containsKey(property)) { try { Method method = defaultAccount.getClass().getMethod("get" + Strings.capitalize(property)); Object propertyValue = method.invoke(account);
if (defaultAccount.getPropertyDescriptors().containsKey(property)) { try { Method method = defaultAccount.getClass().getMethod("get" + Strings.capitalize(property)); Object propertyValue = method.invoke(account);
final String methodName = "get" + Strings.capitalize(propName); Method method = resourceClass.getMethod(methodName); propValue = method.invoke(resource);
final String methodName = "get" + Strings.capitalize(propName); Method method = resourceClass.getMethod(methodName); propValue = method.invoke(resource);