Refactor conref push Java code