If here (in getProcesses("EclAgent" ..) will @pid ever be empty?