code: public static String getOutputPart(ProcessOutput processOutput,String prefix)
      {
          //get output
          String output=processOutput.getOutputText();
  
          if(output!=null)
          {
              //set flag
              boolean validOutput=false;
  
              int index=output.indexOf(prefix);
              if(index!=-1)
              {
                  //get index
                  index=index+prefix.length();
      
                  if(output.length()>index)
                  {
                      //get output
                      output=output.substring(index);
                      
                      output=output.trim();
                      index=output.indexOf("\n");
                      if(index!=-1)
                      {
                          output=output.substring(0,index);
                          output=output.trim();
                      }
  
                      if(output.length()>0)
                      {
                          //set flag
                          validOutput=true;
                      }
                  }
              }
              
              if(!validOutput)
              {
                  output=null;
              }
          }
          
          return output;
      }
docs: This function returns the relevant part from the process output.
  
  @param   processOutput
  The process output
  @param   prefix
  The prefix to look for in the output
  @return  The relevant output part