Maybe it's possible to prepare validation of eid numbers in compile time, using Java's ability to add compile time processor. In that way validation will be done only on compile, not impacting production environment at all.