public class LibraryIdEditor extends PropertyEditorSupport {
@Override
public void setAsText(String s) {
try {
setValue(new LibraryId(Long.valueOf(s)));
} catch (NumberFormatException pe) {
IllegalArgumentException iae = new IllegalArgumentException(
"The passed value is not a Number. The passed value is :" + s);
throw iae;
}