}
}
javaClass.addMethod(getComponentFamilyMethod(componentBean));
ComponentStateManager stateManager = new ComponentStateManager(javaClass);
JavaMethod saveState = getSaveStateTemplate();
try {
saveState.setMethodBody(stateManager.getSaveStateMethodBody(configuration));
} catch (GeneratorException e) {
e.printStackTrace();
}
javaClass.addMethod(saveState);
JavaMethod restoreState = getRestoreStateTemplate();
try {
restoreState.setMethodBody(stateManager.getRestoreStateMethodBody(configuration));
} catch (GeneratorException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
javaClass.addMethod(restoreState);