class ReflectUtils {

    public static Method getPropertySetterMethod(Class clazz, String property, Class propertyClazz) {
        String methodName = "set" + property.substring(0, 1).toUpperCase() + property.substring(1);
        try {
            return clazz.getMethod(methodName, propertyClazz);
        } catch (NoSuchMethodException e) {
            throw new SofaRpcRuntimeException("No setter method for " + clazz.getName() + "#" + property, e);
        }
    }

}