Clean code for java7