/**
* @see net.sf.myway.map.bl.MapBL#getProfile(java.lang.String)
*/
@Override
public Profile getProfile(final String profileName) {
Profile profile = _profileCache.get(profileName);
if (profile == null) {
final InputStream in = Profile.class.getResourceAsStream(profileName + ".xml");
try {
profile = ProfileParser.parse(in);
profile.setName(profileName);
_profileCache.put(profileName, profile);
in.close();
if (!profileName.equals("default"))
profile.setParent(getProfile("default"));
}
catch (final IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}