ERS implementation in Java