ServiceBuilder getModelAttributes issue after migrating to 7.2.1 DXPServiceBuilder getModelAttributes issue after migrating to 7.2.1 DXPhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1195998772024-03-29T07:55:09Z2024-03-29T07:55:09ZServiceBuilder getModelAttributes issue after migrating to 7.2.1 DXPRafał Pydyniakhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1195998762020-07-15T13:11:30Z2020-07-15T13:11:30ZHello, I have an issue with Liferay's ServiceBuilder. We have a custom implementation of "getModelAttributes" and "setModelAttributes" methods in our model implementation (model.impl.XXXImpl). Basically we call super method (base implementation) and just add a little thing from us.It worked well in 7.0.6, we've successfully overridden the basic method and it worked. Now I'm migrating that module to 7.2.1 DXP version and after running the buildService it duplicates the method in RiskProfileWrapper class. So for example in 7.0.6 after running ServiceBuilder in XXXWrapper we only had base implementation and in 7.2.1 DXP after running service builder we have both - base implementation and another method like this:<br /><blockquote>@Override<br /> public Map<String, Object> getModelAttributes() {<br /> return model.getModelAttributes();<br /> }<br /></blockquote>And it causes duplicated method error<br />How can I override that method?<br />Best regards<br /><br /><br />@EDIT - I know I could just rename my method and use the new one instead of the "getModelAttributes" but I don't feel like it's the right thing to do in that case. We want to override so it works fine if anyone uses that and not our "new"