Update ObjectBuilder.java

updated public Object getInstanceOf(Class className)