The org.glassfish.api.admin.AdminCommandContext class provides the following services to an asadmin subcommand:
Access to the parameters of the subcommand
Logging
Reporting
To set the context of an asadmin subcommand, pass an AdminCommandContext object to the execute method of your implementation.