Handle dependency loop in constructor for POJOs from java and javax package