preliminary code for clone method on KBComponent.