Cretateing Exceptions and implementing createPage method of DokuModelAdapter class