Set methods in Spring.java to private