@Override
protected void execute(NodeContext context, String shardName, DeployResult deployResult) throws Exception {
String shardPath = getShardPath(shardName);
File localShardFolder = context.getShardManager().installShard(shardName, shardPath);
IContentServer contentServer = context.getContentServer();
if (!contentServer.getShards().contains(shardName)) {
contentServer.addShard(shardName, localShardFolder);
Map<String, String> shardMetaData = context.getContentServer().getShardMetaData(shardName);
if (shardMetaData == null) {
throw new IllegalStateException("node managed '" + context.getContentServer()
+ "' does return NULL as shard metadata");
}