code: public IPlan[] getAgentPlans(final String agent_name, Connector connector) {
          ((IExternalAccess) connector.getAgentsExternalAccess(agent_name))
                  .scheduleStep(new IComponentStep<Plan>() {
  
                      public IFuture<Plan> execute(IInternalAccess ia) {
  
                          IBDIInternalAccess bia = (IBDIInternalAccess) ia;
                          plans = bia.getPlanbase().getPlans();
                          return null;
                      }
                  }).get(new ThreadSuspendable());
  
          return plans;
      }
docs: This method prints plan information of an agent through its external
  access. It can be used to check the correct behaviour of the agent.
  
  @param agent_name
  The name of the agent
  @param connector
  The connector to get the external access
  @return plans the IPlan[] with all the information, so the tester can
  look for information