@Override
public IRenderingElement generate( IAtomContainer ac, RendererModel model ) {
JChemPaintRendererModel jcpModel = (JChemPaintRendererModel) model;
if(hub == null || hub.getPhantoms()==null)
return new ElementGroup();
final ElementGroup group = new ElementGroup();
for(IBond bond:hub.getPhantoms().bonds()) {
this.setOverrideColor(Color.GRAY);
IRenderingElement element = generateBond( bond, jcpModel);
group.add(element);
}
return group;
}