crean code following PMD and Findbugs