Auto grab class name for java constructor.