code: public static Map<String,byte[]> collectLogs( String karafData ) throws IOException {
  
  		Map<String,byte[]> logFiles = new HashMap<>( 2 );
  		if( ! Utils.isEmptyOrWhitespaces( karafData )) {
  
  			String[] names = { "karaf.log", "roboconf.log" };
  			for( String name : names ) {
  				File log = new File( karafData, AgentConstants.KARAF_LOGS_DIRECTORY + "/" + name );
  				if( ! log.exists())
  					continue;
  
  				String content = Utils.readFileContent( log );
  				logFiles.put( name, content.getBytes( StandardCharsets.UTF_8 ));
  			}
  		}
  
  		return logFiles;
  	}
docs: Collect the main log files into a map.
  @param karafData the Karaf's data directory
  @return a non-null map