}
public String getRuntimeTypePrefix(StartupContext startupContext) {
Properties args = startupContext.getArguments();
RuntimeType serverType = RuntimeType.getDefault();
String typeString = args.getProperty("-type");
if (typeString != null)
serverType = RuntimeType.valueOf(typeString);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("server type is: " + serverType.name());
}
if (serverType.isEmbedded()) return "embedded";
if (serverType.isSingleInstance() || serverType.isDas()) return "admin";
if (serverType.isInstance()) return "instance";
return "";
}