title: Is that the correct way of creating realm module?
body: <p>Hi i have a android project that use another android project as a module. I used realm for offline data storage. both the project uses realm data base. when i try to run the project it shows error. </p>
  
  <pre><code> class RealmModel is not part of the schema for this Realm
  </code></pre>
  
  <p>i used this <a href="https://github.com/realm/realm-java/issues/4616" rel="nofollow noreferrer">link</a> to fix that error </p>
  
  <p>In that above url, they asked to create RealmModule class with @RealmModule annotation. This is my class,</p>
  
  <pre><code> @RealmModule
   public class MessageRealmModule implements RealmModule {
  
       @Override
       public boolean library() {
           return true;
       }
  
       @Override
       public boolean allClasses() {
           return false;
       }
  
       @Override
       public Class&lt;?&gt;[] classes() {
           return new Class&lt;?&gt;[0];
       }
  
       @Override
       public Class&lt;? extends Annotation&gt; annotationType() {
           return null;
       }
   }
  </code></pre>
  
  <p>After this line got this error.</p>
  
  <p>java.lang.IllegalArgumentException: com.anubavam.message.MessageRealmModule is not a RealmModule. Add @RealmModule to the class definition.</p>