Made changes to throw an exception if the dispatcher servlet is null - TRUNK-1589

Fixed javadoc - TRUNK-1589