code: private static String extractArguments( final ProfileOption[] profiles )
      {
          final StringBuilder argument = new StringBuilder();
          if( profiles != null && profiles.length > 0 )
          {
              for( ProfileOption profile : profiles )
              {
                  if( profile != null && profile.getProfile() != null && profile.getProfile().length() > 0 )
                  {
                      if( argument.length() == 0 )
                      {
                          argument.append( "--profiles=" );
                      }
                      else
                      {
                          argument.append( "," );
                      }
                      argument.append( profile.getProfile() );
                  }
              }
          }
          return argument.toString();
      }
docs: Converts profile options into corresponding arguments (--profiles).
  
  @param profiles profile options
  
  @return converted Pax Runner collection of arguments