setPropertyIfNot(SERVICES, DEFAULT_SERVICES);
//#MIDP_EXCLUDE_BEGIN
// Set agents as a list to handle the "gui" option
try {
List agents = getSpecifiers(AGENTS);
String isGui = props.getProperty("gui");
if (isGui != null && CaseInsensitiveString.equalsIgnoreCase(isGui, "true")) {
Specifier s = new Specifier();
s.setName("rma");
s.setClassName("jade.tools.rma.rma");
agents.add(0, s);
props.put(AGENTS, agents);
}
}
catch(ProfileException pe) {
// FIXME: Should throw?
pe.printStackTrace();
}
//#MIDP_EXCLUDE_END
//#J2ME_EXCLUDE_BEGIN
// If this is a Main Container and the '-nomtp' option is not
// given, activate the default HTTP MTP (unless some MTPs have
// been directly provided).
if(isMain() && (!getBooleanProperty("nomtp", false)) && (props.getProperty(MTPS) == null)) {
Specifier s = new Specifier();
s.setClassName("jade.mtp.http.MessageTransportProtocol");
List l = new ArrayList(1);
l.add(s);
props.put(MTPS, l);
}
//#J2ME_EXCLUDE_END
}