Import directive improvementes

Added import function to ConfigurationBuilder
Fixed import logic in ContextFactory