code: private ClientProperties onParseXML(String propertyFileName, PersistenceUnitMetadata puMetadata)
      {
          InputStream inStream = puMetadata.getClassLoader().getResourceAsStream(propertyFileName);
          if (inStream == null)
          {
              propertyFileName = KunderaCoreUtils.resolvePath(propertyFileName);
              try
              {
                  inStream = new FileInputStream(new File(propertyFileName));
              }
              catch (FileNotFoundException e)
              {
                  log.warn("File {} not found, Caused by ", propertyFileName);
                  return null;
              }
  
          }
  
          if (inStream != null)
          {
              xStream = getXStreamObject();
              Object o = xStream.fromXML(inStream);
              return (ClientProperties) o;
          }
  
          return null;
      }
docs: If property file is xml.
  
  @param propertyFileName
  @param puMetadata
  @return