Removed println statements and replaced with LOGGER. Eliminated the stacktrack in a catch block. Cloned a string array instead of passing it directly. Other clean up to match java coding best practices.