[KARAF-4259] Fix potential cast issue when copy a group configuration
1 file changed