ISwingFormManager.getFormPanel() returning null

Can you give an example of how best to use this new method?

It is returning null. The name parameter I am passing it is the name of one of the forms in the solution.

public void js_showForm(String name){

ISwingFormManager manager = (ISwingFormManager)app.getFormManager();
JComponent comp = manager.getFormPanel(name, new JPanel());

}

Thanks,
Sean