public Opt<CommandDef> process(Object instance, ReflectionMethod method) {
        try {
            return doCreateCommand(instance, method);
        } catch (Exception e) {
            // Unfortunately, this happens in GWT and kills the whole application if the exception is thrown.
            System.err.println("Error creating command: class="+method.getDeclaringClass()+", method=" + method.getName());
            e.printStackTrace(System.err);
            return Opt.absent();
        }
    }
public Opt < CommandDef > process ( Object instance , ReflectionMethod method ) { try { return doCreateCommand ( instance , method ) ; } catch ( Exception e ) { System . err . println ( "Error creating command: class=" + method . getDeclaringClass ( ) + ", method=" + method . getName ( ) ) ; e . printStackTrace ( System . err ) ; return Opt . absent ( ) ; } }
Process the method and create a {@link CommandDef} out of it, if it is accepted by one of the {@link MethodCommandFactory}s.

@param instance Instance of a class to which this method belongs.
@param method ReflectionMethod to be processed.
@return A {@code present} {@link CommandDef} if any of the factories managed to process the method.