create viewer plugin for java