Removed thrown exception as it is not allowed in the JEE spec