code: private static String extractArguments( final BootDelegationOption[] packages )
      {
          final StringBuilder argument = new StringBuilder();
          if( packages != null && packages.length > 0 )
          {
              for( BootDelegationOption pkg : packages )
              {
                  if( pkg != null && pkg.getPackage() != null && pkg.getPackage().length() > 0 )
                  {
                      if( argument.length() == 0 )
                      {
                          argument.append( "--bootDelegation=" );
                      }
                      else
                      {
                          argument.append( "," );
                      }
                      argument.append( pkg.getPackage() );
                  }
              }
          }
          return argument.toString();
      }
docs: Converts boot delegation packages options into corresponding arguments (--bootDelegation).
  
  @param packages boot delegation package options
  
  @return converted Pax Runner collection of arguments