class ObjectUtil {

    public static String getMethodIdentifier(Method method) {
        final StringBuilder sb = new StringBuilder();
        sb.append(method.getName());
        sb.append('(');

        int i = 0;
        for (final Class<?> clazz : method.getParameterTypes()) {
            if (i++ > 0) sb.append(',');
            sb.append(clazz);
        }
        sb.append(')');
        return sb.toString();
    }

}