using commons-lang to replace own implementation of serialization.