Changed the getStruct method to a protected accessor, since it should not be called directly