copyAndAdd

Copies this ApplicationClassExtensionConfig, adds the given dependencies to the copied instance, and returns it.