code: private void readFile()
              throws IOException
      {
          BufferedReader reader = null;
  
          try {
              reader = new BufferedReader( new InputStreamReader( new FileInputStream( file ), PcsUtils.UTF8 ) );
  
              LOGGER.debug( "Reading credentials file {}", file );
  
              String line;
              int index = 1;
  
              while ( ( line = reader.readLine() ) != null ) {
                  line = line.trim();
  
                  if ( line.startsWith( "#" ) || line.length() == 0 ) {
                      continue;
                  }
  
                  String[] userCredentialsArray = line.split( "=", 2 );
  
                  if ( userCredentialsArray.length != 2 ) {
                      throw new IllegalArgumentException( "Not parsable line #" + index );
                  }
  
                  // Key
                  final String key = userCredentialsArray[0].trim();
                  final Credentials value = Credentials.createFromJson( userCredentialsArray[1].trim() );
  
                  credentialsMap.put( key, value );
  
                  index++;
              }
  
          } finally {
              PcsUtils.closeQuietly( reader );
          }
      }
docs: Parses a file of credentials
  
  @throws IOException Error reading the file