Exception handling adjusted to meet Java SE 1.5 requirements. (No combined catch for multiple Exceptions)