if (mappingProperties == null) {
streamFactory.load(mappingInputStream);
} else {
final Properties p = new Properties();
p.putAll(mappingProperties);
streamFactory.load(mappingInputStream, p);
}
} finally {
try {
mappingInputStream.close();
} catch (final IOException ioe) {