taken NLS.java from eclipse site