We can just replace this with

boolean IS_SECURE = (conf.get("hadoop.security.authentication", "simple") == "kerberos") ? true : false;

and we should just add this to the merlin keys/constants class.