wrote custom exceptions to be able to distinguish various errors(others are welcomed to use of course). worked some more on sessionbeans.