Access Internal Dao method bamboo

I am trying to make a plugin, which needs to access an internal dao method. But I am getting error when I declare the class and try to use it.
Class and method which I am trying to access -

public interface DeploymentProjectDao {
     * @return list of all DeploymentProjects
    List<MutableDeploymentProject> getAllDeploymentProjects(int firstResult, int maxResults);

Error I am getting -

[INFO] [talledLocalContainer] 2018-05-09 13:15:03,828 ERROR [ThreadPoolAsyncTaskExecutor::Thread 7] [OsgiPlugin] Unable to start the plugin container for plugin ''
[INFO] [talledLocalContainer] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class []; nested exception is class path resource [org/springframework/orm/hibernate5/support/HibernateDaoSupport.class] cannot be opened because it does not exist

Also for any Atlassian Staff, why is this method not put in the service class ?

Can we use hibernate in plugins for Atlassian Bamboo?

Not useful anymore, can anyone flag this to be deleted or delete it.