docs: public IGoal[] getAgentGoals(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;
  
                          goals = bia.getGoalbase().getGoals();
                          return null;
                      }
                  }).get(new ThreadSuspendable());
  
          return goals;
      }