code: public final static boolean isEjbQlIdentifier(String s)
     {
        if (s == null || s.length() == 0)
        {
           return false;
        }
  
        for (int i = 0; i < ejbQlIdentifiers.length; i++)
        {
           if (ejbQlIdentifiers[i].equalsIgnoreCase(s))
           {
              return true;
           }
        }
  
        return false;
     }
docs: Check whether the given String is an identifier according to the EJB-QL definition. See The EJB 2.0 Documentation
  Section 11.2.6.1.
  
  @param s String to check
  
  @return <code>true</code> if the given String is a reserved identifier in EJB-QL, <code>false</code> otherwise.