code: private Collection<String> extractArguments( final FrameworkOption[] frameworks )
      {
          final List<String> arguments = new ArrayList<String>();
          if( frameworks.length > 1 )
          {
              throw new IllegalArgumentException( "Configuration cannot contain more then one platform" );
          }
          if( frameworks.length > 0 )
          {
              if( frameworks[ 0 ] instanceof CustomFrameworkOption )
              {
                  String basePlatform = ( (CustomFrameworkOption) frameworks[ 0 ] ).getBasePlatform();
                  if( basePlatform != null && basePlatform.trim().length() > 0 )
                  {
                      arguments.add( "--platform=" + basePlatform );
                  }
                  arguments.add( "--definitionURL=" + ( (CustomFrameworkOption) frameworks[ 0 ] ).getDefinitionURL() );
              }
              else
              {
                  arguments.add( "--platform=" + frameworks[ 0 ].getName() );
                  final String version = frameworks[ 0 ].getVersion();
                  if( version != null && version.trim().length() > 0 )
                  {
                      arguments.add( "--version=" + version );
                  }
              }
          }
          return arguments;
      }
docs: Converts framework options into corresponding arguments (--platform, --version).
  
  @param frameworks framework options
  
  @return converted Pax Runner collection of arguments
  
  @throws IllegalArgumentException - If there are more then one framework options