Removing wildfly specific class and configuring OpenJPA