Hi,
I tried but Throws to nullPointerExeption.
PageContextpageContext = (PageContext) renderContext;
ContentEntityObject contentObject = ((PageContext) renderContext)
.getEntity();
String key = "ds";
key = pageContext.getSpaceKey();
Also this code below throw to same:
@Override
public String execute(Map<String, String> params, String body, ConversionContext conversionContext) throws MacroExecutionException
{
try
{
return execute(params, body, (RenderContext) null);
}
catch (MacroException e)
{
throw new MacroExecutionException(e);
}
}