// so copy them all in. However, preserve anything in our own namespace
// map not found in namespace
for (final Map.Entry<String, TLDNamespace> namespaceEntry : namespace
.entrySet())
{
final TLDNamespace ns = namespaceEntry.getValue();
final String nsName = namespaceEntry.getKey();
final SerializableTLDNamespace myNs = _namespaces.get(nsName);
if (myNs == null)
{
if (JSFCoreTraceOptions.TRACE_JSPTAGPERSISTENCE)
{
JSFCoreTraceOptions.log(String.format(
"Adding namespace %s for project", ns.getNSUri(), //$NON-NLS-1$
_project.toString()));
}
_namespaces.put(nsName, new SerializableTLDNamespace(ns));
}
else
{
if (JSFCoreTraceOptions.TRACE_JSPTAGPERSISTENCE)
{
JSFCoreTraceOptions.log(String.format(
"Updating namespace %s for project", ns.getNSUri(), //$NON-NLS-1$
_project.toString()));
}
for (final Map.Entry<String, ITagElement> elementEntry : ns
.getCurrentElements().entrySet())
{
if (JSFCoreTraceOptions.TRACE_JSPTAGPERSISTENCE)
{
JSFCoreTraceOptions.log(String.format(