code: public static PersistenceUnitTransactionType getTransactionType(String elementContent)
      {
  
          if (elementContent == null || elementContent.isEmpty())
          {
              return null;
          }
          else if (elementContent.equalsIgnoreCase("JTA"))
          {
              return PersistenceUnitTransactionType.JTA;
          }
          else if (elementContent.equalsIgnoreCase("RESOURCE_LOCAL"))
          {
              return PersistenceUnitTransactionType.RESOURCE_LOCAL;
          }
          else
          {
              throw new PersistenceException("Unknown TransactionType: " + elementContent);
          }
      }
docs: Gets the transaction type.
  
  @param elementContent
  the element content
  @return the transaction type