This bit of code is my multipurpose resource manager used for loading items into Java. It caches objects in memory in order to save generally inefficient loading.