MetadataTool: added withSocketsDo