Prim dComponent = (Prim) getPrimClass().newInstance();
final Class primClass = getPrimClass(); Prim dComponent = (Prim) primClass.newInstance();
    protected Prim deploy(Prim parent) throws SmartFrogDeploymentException {        Context cxt = null;        try {            // create instance            Prim dComponent = (Prim) getPrimClass().newInstance();            // deploy component after wiping out the parentage of any            // descriptions in the context. Prim is not a valid parent, so            // lose the parent baggage            cxt = target.sfContext();            for (Enumeration e = cxt.keys(); e.hasMoreElements();) {                Object value = cxt.get(e.nextElement());                if (value instanceof ComponentDescription) {                    ((ComponentDescription) value).setParent(null);                }            }            dComponent.sfDeployWith(parent, cxt);            return dComponent;        } catch (InstantiationException instexcp) {            throw new SmartFrogDeploymentException(MessageUtil.formatMessage(                    MSG_INSTANTIATION_ERROR, "Prim"), instexcp, null, cxt);        } catch (IllegalAccessException illaexcp) {            throw new SmartFrogDeploymentException(MessageUtil.formatMessage(                    MSG_ILLEGAL_ACCESS, "Prim", "newInstance()"), illaexcp, null, cxt);        } catch (SmartFrogException sfdex){            throw ((SmartFrogDeploymentException)SmartFrogDeploymentException.forward(sfdex));        } catch (Throwable t) {            throw new SmartFrogDeploymentException(null, t, null, cxt);       }    }