@Override public void execute(String... parameters) throws IOException {
  if (parameters.length < 4) {
    cio.writeln(PrintHelp.FEDERATE);
  }
 else {
    LinkedList<String> plist=new LinkedList<String>(Arrays.asList(parameters));
    plist.remove();
    boolean distinct=getOptionalParamValue(plist,"distinct",false);
    boolean readonly=getOptionalParamValue(plist,"readonly",true);
    if (distinctValues(plist)) {
      String fedID=plist.pop();
      federate(distinct,readonly,fedID,plist);
    }
 else {
      cio.writeError("Duplicate repository id's specified.");
    }
  }
}

@ Override public void execute ( String ... parameters ) throws IOException { if ( parameters . length < 4 ) { cio . writeln ( PrintHelp . FEDERATE ) ; } else { LinkedList < String > plist = new LinkedList < String > ( Arrays . asList ( parameters ) ) ; plist . remove ( ) ; boolean distinct = getOptionalParamValue ( plist , "distinct" , false ) ; boolean readonly = getOptionalParamValue ( plist , "readonly" , true ) ; if ( distinctValues ( plist ) ) { String fedID = plist . pop ( ) ; federate ( distinct , readonly , fedID , plist ) ; } else { cio . writeError ( "Duplicate repository id's specified." ) ; } } }
executes a ' federate ' command for the sesame console .
