Can't Import XLS MACRO in LibreOffice ODS - using API

I have been using the following code to read the Macro Libraries in OpenOffice and trying some thing to work with LibreOffice as well,

XLibraryContainer libraryContainer = (XLibraryContainer)UnoRuntime.queryInterface(XLibraryContainer.class, propertySet.getPropertyValue(“BasicLibraries”)); XNameAccess nameAccess = (XNameAccess)UnoRuntime.queryInterface(XNameAccess.class, libraryContainer); libraryContainer.loadLibrary(“Standard”);

Here librarycontainer is not loading the “Standard”, though it was fins with OO. Is there something different here? libraryContainer is not null but the libraryContainer.getElementNames().length is O. But the length was 1 when I was using the OpenOffice.