Code checked with PMD and mostly fixed

fixed: useless else statements
fixed: short function names
fixed: catching NullPointerException
fixed: dangerous operations with static variables
fixed: unused imports
fixed: useless logical comparing of booleans
fixed: unmarked final variables
fixed: throwing unspecified Exception
fixed: empty function changed to abstract

partially fixed: non-static behavior of Calendar