private String getMethodName(Object[] args) {
        final Method methodInvoked = ArrayArgumentUtils.getArgument(args, 2, Method.class);
        if (methodInvoked != null) {
            try {
                final Class<?> declaringClass = methodInvoked.getDeclaringClass();

                final StringBuilder methodNameBuilder = new StringBuilder();
                methodNameBuilder.append(declaringClass.getCanonicalName());
                methodNameBuilder.append('.');
                methodNameBuilder.append(methodInvoked.getName());
                return methodNameBuilder.toString();

            } catch (final Exception exception) {
                logger.error("An error occurred while fetching method details", exception);
            }
        }
        return "";
    }
Creates the trace.

@param target the target
@param args   the args
@return the trace
agent-module/plugins/jboss/src/main/java/com/navercorp/pinpoint/plugin/jboss/interceptor/MethodInvocationHandlerInterceptor.java