Getting error while importing WCMUsePojo in sightly component.
hi All,
I am facing the issue while using the java in sightly i am extending my java class from WCMUsePojo;
Below is hierarchy.

TopNav.java
import com.day.cq.sightly.WCMUsePojo;
and using this java class in sightly component using the below code
site-topnav.html
<div data-sly-use.topnav="TopNav">
<a href="${topnav.root.path}.html">we.<strong>train</strong></a>
<li data-sly-repeat="${topnav.items}">
<a href="${item.path}.html">${item.title}</a>
</li>
</div>
But i am getting the error on browser while accessing this component
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: Compilation errors in apps/training/components/site_topnav/TopNav.java:
Line 7, column 177 : Only a type can be imported. com.day.cq.sightly.WCMUsePojo resolves to a package
Can someone please suggest me how to resolve this.