Rectified all the containsKey in ResourceManagerImpl