private LocalCommand newInstanceOfCmd ( String commandNode , String sessionID ) throws XMPPErrorException , InstantiationException , IllegalAccessException , IllegalArgumentException , InvocationTargetException , NoSuchMethodException , SecurityException { AdHocCommandInfo commandInfo = commands . get ( commandNode ) ; LocalCommand command = commandInfo . getCommandInstance ( ) ; command . setSessionID ( sessionID ) ; command . setName ( commandInfo . getName ( ) ) ; command . setNode ( commandInfo . getNode ( ) ) ; return command ; }
Creates a new instance of a command to be used by a new execution request