Hi @Bimmi_Soi Thanks for the suggestion,I tried the approach you have shared, but still getting the null exception on line.
model = resource.adaptTo(modelClass);
Instead of using the following sling:resourceType , sling:resourceTypegranite/ui/components/coral/foundation/form/multifieldgranite/ui/components/foundation/form/multifielduse the resourceType : dam/cfm/admin/components/authoring/contenteditor/cfmmultifield