code: private static Properties loadProperties(InputStream pInput)
          throws IOException {
  
          if (pInput == null) {
              throw new IllegalArgumentException("InputStream == null!");
          }
  
          Properties mapping = new Properties();
          /*if (pInput instanceof  XMLPropertiesInputStream) {
              mapping = new XMLProperties();
          }
          else {
              mapping = new Properties();
          }*/
  
          // Load the properties
          mapping.load(pInput);
  
          return mapping;
      }
docs: Returns a Properties, loaded from the given inputstream. If the given
  inputstream is null, then an empty Properties object is returned.
  
  @param pInput the inputstream to read from
  
  @return a Properties object read from the given stream, or an empty
  Properties mapping, if the stream is null.
  
  @throws IOException if an error occurred when reading from the input
  stream.