code: @Override
      public boolean isAvailable(CommandContext ctx) {
          if (ctx.isControllerConnected()) {
              ctx.printLine("Already connected");
              return false;
          }
          return true;
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.ss7.management.console.CommandHandler#isAvailable(org.mobicents
  .ss7.management.console.CommandContext)