Moved all requires out of Java classes.