context.getFrameworkHomePath(),
MessageFormat.format(PATTERN_PROFILE, profile)).getAbsoluteFile();
Map<String, String> variables = new HashMap<String, String>(context.getEnvironmentVariables());
variables.put("WINDGATE_PROFILE", profile);
ParameterList contextParameters = new ParameterList(variables);
ProfileContext profileContext = new ProfileContext(classLoader, contextParameters);
URI uri = profilePath.toURI();
Properties properties = CommandLineUtil.loadProperties(uri, classLoader);
return GateProfile.loadFrom(CommandLineUtil.toName(uri), properties, profileContext);
} catch (Exception e) {