group if statements and log.debug instead of warn.

EmptyStringInterceptor was logging a warning every time it ran which just clouds the logs with noise. Just today there are 1610 occurrences.

While I was in there I combined the if statements which fixes a pmd static analysis complaint of if statements that could be collapsed.