Add preview for java builder