Thank you for your kind effort
Im trying to follow your example but an error keep appearing to me
the code doesn't work right so I attached it here
can you please explain to me what I did wrong.
Thanks in advance

String path = request.getParameter( "path" );
if ( path == null ) {
path = "/content/folder[@name='Reports']";
}
PropEnum propm[] = new PropEnum[]{PropEnum.defaultName,PropEnum.searchPath,PropEnum.metadataModelPackage};
BaseClass bc_obj[] = cognos.query(new SearchPathMultipleObject(path),propm,new Sort[] {},new QueryOptions());
AuthoredReport oReport = (AuthoredReport)bc_obj[0];
BaseClassArrayProp ob = oReport.getMetadataModelPackage();
BaseClass[] bc_object = ob.getValue();
GuidProp gp = bc_object[0].getStoreID();
Guid guid = gp.getValue();
String strStoreID = guid.getValue();
String strQuery = "storeID('" +strStoreID +"')";