private static Value<?> getValue( final JBossServiceAttributeConfig attributeConfig, final List<ClassReflectionIndex> mBeanClassHierarchy) { final String attributeName = attributeConfig.getName(); final Method setterMethod = ReflectionUtils.getSetter(mBeanClassHierarchy, attributeName); final Class<?> setterType = setterMethod.getParameterTypes()[0]; return new ImmediateValue<Object>(newValue(setterType, attributeConfig.getValue())); }