Marked select methods in java and ruby code as private