move isNameValidInXmlFileConnection method