... this castle was home to an imprisoned military commander for some time .