Encapsulate ONEx4j, using abstract class