// if the server is running on production mode we need to initialize the secret manager
// before the server state to be ServerState.INITIALIZABLE
if (deploymentMode != null && PRODUCTION_MODE.equals(deploymentMode.trim())) {
SecretManager secretManager = SecretManager.getInstance();
if (secretManager.isInitialized()) {
return ServerState.INITIALIZABLE;
} else {
secretManager.init(SynapsePropertiesLoader.loadSynapseProperties());
if (secretManager.isInitialized()) {
return ServerState.INITIALIZABLE;
}
}
} else {