EMap xsiSchemaLocationMap = getSchemaLocationMap();
if (xsiSchemaLocationMap != null)
{
// only remove the entries from xsiSchemaLocationMap that contain a
// non-null key
for (Iterator i = xsiSchemaLocationMap.entrySet().iterator(); i.hasNext();)
{
Map.Entry entry = (Map.Entry) i.next();
if (entry.getKey() != null)
{
i.remove();