- private Class<?> propertyClass(T instance, String baseName) {
- PropertyDescriptor propertyDescriptor = null;
- Class<?> c = null;
- try {
- propertyDescriptor = PropertyUtils.getPropertyDescriptor(instance, baseName);
- if(propertyDescriptor != null){
- c = propertyDescriptor.getClass();
- }
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NoSuchMethodException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return c;
- }
-
- /**
- * @param <SUB_T>
- * @param clazz
- * @param uuid
- * @param response
- * @param pathProperties
- * @return
- * @throws IOException
- */