@Override
  public boolean isMasterKeyInitialized() {
    return master != null;
  }
Constructs a new MasterKeyServiceImpl using prefered source according config.
masterKey > masterKeyLocation > environment
ambari-server/src/main/java/org/apache/ambari/server/security/encryption/MasterKeyServiceImpl.java