public static PaletteItemManager getInstance(final IPaletteContext paletteContext) {
boolean hasLock = false;
try {
if (MANAGER_LOCK.tryLock(MANAGER_LOCK_TIMEOUT, TimeUnit.SECONDS)){
hasLock = true;
final TagRegistryIdentifier regId = getTagRegistryIdentifier(paletteContext);
if (regId == null) {
PDPlugin.log(new Status(IStatus.ERROR, PDPlugin.getPluginId(), "Unable to display palette for "+paletteContext.getFile().getName()+". Unknown content type for file.")); //$NON-NLS-1$//$NON-NLS-2$
return null;
}
PaletteItemManager manager = _managers.get(regId);